package com.kongqw.wechathelper.net

import com.kongqw.wechathelper.net.response.AccessTokenInfo
import com.kongqw.wechathelper.net.response.WeChatUserInfo
import io.reactivex.Observable

interface IBaseRequest {

    /**
     * 通过code获取access_token
     */
    fun getAccessToken(appId: String, secret: String, code: String): Observable<AccessTokenInfo>

    /**
     * 通过access_token获取用户信息
     */
    fun getWeChatUserInfo(accessToken: String, openId: String): Observable<WeChatUserInfo>

}